#include<iostream>
using namespace std;
const int N = 1e4 + 10;
int arr[N];
int n, k, av;
int main()
{
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> arr[i];
	}
	cin >> k >> av;
	int cnt = 0;
	for (int i = 0, j = 0, sum = 0; i < n; i++) {
		sum += arr[i];
		if (i - j >= k) {
			sum -= arr[j++];
		}
		if (i - j + 1 == k && sum >= k * av) {
			cnt++;
		}
	}
	cout << cnt << endl;
	return 0;
}